.ai-chat-widget {
    width: 100%;
    max-width: 600px;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ai-chat-widget.light {
    background-color: #ffffff;
    color: #333333;
}

.ai-chat-widget.dark {
    background-color: #2d2d2d;
    color: #ffffff;
}

.ai-chat-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .ai-chat-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.ai-name {
    font-size: 16px;
    font-weight: 600;
}

.ai-chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 80%;
}

.user-message {
    align-self: flex-end;
}

.ai-message {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.user-bubble {
    background-color: #4f46e5;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    background-color: #f3f4f6;
    color: #333333;
    border-bottom-left-radius: 4px;
}

.dark .ai-bubble {
    background-color: #3d3d3d;
    color: #ffffff;
}

.ai-chat-footer {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
}

.dark .ai-chat-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.ai-input {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.dark .ai-input {
    background-color: #3d3d3d;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ai-input:focus {
    border-color: #4f46e5;
}

.ai-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #4f46e5;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.2s;
}

.ai-send-btn:hover {
    background-color: #4338ca;
}

.ai-send-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}